﻿using System.Web.UI;
using System.Web.UI.WebControls;

namespace PortalCurriculo.Util.CustomControls.ListViewObjects
{
    public class EmptyDataTemplate : ITemplate
    {
        public EmptyDataTemplate(string message)
        {
            Message = message;
        }

        public string Message { get; set; }

        public void InstantiateIn(Control container)
        {
            container.Controls.Add(new Label { Text = Message, ID = "lblEmpty" });
        }
    }
}